package com.ewerp.mud.entitycore.gender;

public class GenderFactory implements IGender {
	private static final IGender neutral = new Neutral();
	private static final IGender feminine = new Feminine();
	private static final IGender masculine = new Masculine();
	
	public static IGender getInstance(Class<? extends IGender> type) {
		if(type.equals(Neutral.class)) {
			return neutral;
		}
		
		if(type.equals(Feminine.class)) {
			return feminine;
		}
		
		if(type.equals(Masculine.class)) {
			return masculine;
		}
		
		return null;
	}
}
